package edu.xidian.bdilab.jrbigdata.controller.enterprise;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import edu.xidian.bdilab.jrbigdata.service.enterprise.checkProductRequest.CheckProductRequestService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author Catfish
 */
@CrossOrigin
@RestController
@Api(tags = {"CheckProductRequest-企业用户查看自己发布的需求"})
public class CheckProductRequestController {

    @Autowired
    CheckProductRequestService checkProductRequestService;

    @RequestMapping(value = "enterprise/checkProductRequest", method = RequestMethod.POST)
    public ResponseResult checkProductRequest(@RequestParam String socialCode)
    {
        ResponseResult responseResult= checkProductRequestService.checkProductRequest(socialCode);
        return  responseResult;
    }

    @RequestMapping(value = "enterprise/changeProductRequestPublic", method = RequestMethod.POST)
    public ResponseResult changeProductRequestPublic(@RequestParam String requirementId)
    {
        ResponseResult responseResult= checkProductRequestService.changeProductRequestPublic(requirementId);
        return  responseResult;
    }
}
